package com.schoolcloud.share.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 章节视频关联表
 * @TableName section_videos
 */
@TableName(value ="section_videos")
@Data
public class SectionVideos implements Serializable {
    /**
     * 关联ID
     */
    @TableId(value = "section_video_id", type = IdType.AUTO)
    private Integer sectionVideoId;

    /**
     * 章节ID
     */
    @TableField(value = "section_id")
    private Integer sectionId;

    /**
     * 视频ID
     */
    @TableField(value = "video_id")
    private Integer videoId;

    /**
     * 添加者ID
     */
    @TableField(value = "added_by")
    private Integer addedBy;

    /**
     * 排序序号
     */
    @TableField(value = "sequence")
    private Integer sequence;

    /**
     * 是否审核通过
     */
    @TableField(value = "is_approved")
    private Integer isApproved;

    /**
     * 添加时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
